/**
 * Prints lists of numbers, enclosed in square braces.
 */
public class PrintNumbers {

    public static void main(String[] args) {
        // Test printNumbers(...) with several different values.
        printNumbers(15);
        printNumbers(10);
        printNumbers(5);
        printNumbers(0);
        printNumbers(1);
    }


	// --------------------------------
	// ----- ENTER YOUR CODE HERE -----
	// --------------------------------

	public static void printNumbers(int x) {
	    for (int i=1; i<=x; i++) {
	        System.out.print("[" + i + "] ");
	    }
	 System.out.println();
	 }


	// --------------------------------
	// --------- END USER CODE --------
	// --------------------------------

}              